package cn.edu.nenu.contract.dto;

import java.util.List;

/**
 * @author Kaginux
 * @version 6:29:05 PM May 1, 2011
 */
public class ProjectDTO extends TaskDTO {

	private static final long serialVersionUID = 1L;

	private ITADate startDate;
	private ITADate endDate;
	private List<TaskDTO> tasks;

	public ProjectDTO(int id, String title, String description,
			boolean isProject, int ownerId, String ownerName,
			int parentProjectId, String parentProjectName, ITADate startDate,
			ITADate endDate, List<TaskDTO> tasks) {
		super(id, title, description, isProject, ownerId, ownerName,
				parentProjectId, parentProjectName);
		this.startDate = startDate;
		this.endDate = endDate;
		this.tasks = tasks;
	}

	public ITADate getStartDate() {
		return startDate;
	}

	public ITADate getEndDate() {
		return endDate;
	}

	public List<TaskDTO> getTasks() {
		return tasks;
	}

	public void setStartDate(ITADate startDate) {
		this.startDate = startDate;
	}

	public void setEndDate(ITADate endDate) {
		this.endDate = endDate;
	}

	public void setTasks(List<TaskDTO> tasks) {
		this.tasks = tasks;
	}

	@Override
	public String toString() {
		return "ProjectDTO [startDate=" + startDate + ", endDate=" + endDate
				+ ", tasks=" + tasks + "]";
	}

}
